app.controller('gloController',['$scope', 'gloService', function($scope, gloService){
	gloService.getData().success(function(res){
           // console.log(res);
           
            $scope.items=res.list;
    })
    gloService.getDa().success(function(res){
           // console.log(res.data.banner_ads[2].pic);
            $scope.itss=res.data.banner_ads;   
            setTimeout(function(){
            	 var swiper = new Swiper('.swiper-container', {
			        pagination: '.swiper-pagination',
			        nextButton: '.swiper-button-next',
			        prevButton: '.swiper-button-prev',
			        autoplay: 1500,
			        autoplayDisableOnInteraction: false
			    });       
            	},100); 
    })

}])












